<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont">&#xe60e;</div>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe62f;</span>
      输入城市/景点/游玩主题
    </div>
    <router-link to="/city">
      <div class="header-right">
        {{city}}
        <span class="iconfont">&#xe64a;</span>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'Header',
  props: {
    city: String
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/variables.styl'
  .header
    display: flex
    height: $headerHeight;
    line-height: $headerHeight;
    background-color: $themColor;
    color: #fff;
    .header-left
      width: .64rem;
      padding-right: .2rem;
      text-align: center;
    .header-input
      flex: 1;
      margin-top: .12rem;
      padding-left: .2rem;
      padding-right: .2rem;
      height: .64rem
      line-height: .64rem
      background-color: #fff;
      color: #999;
      border-radius: .1rem;
    .header-right
      width: 1.24rem;
      text-align: center;
      color: #fff
</style>
